@tool
extends Node



@export var max_health: DataItem_GD = DataItem_GD.new(0, 999999, 100)
@export var health: DataItem_GD = DataItem_GD.new(0, max_health.value, 0)


func _ready() -> void:
    max_health.value_changed.connect(
        func(_ov: float, nv: float) -> void:
            health.max_val = nv
            print("max health changed")
    )

